package com.data.center.mapper.mongo;

import com.data.center.entity.mongo.MongoStaff;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.Query;

import java.util.Optional;

@Repository
public interface MongoStaffRepository extends MongoRepository<MongoStaff, String>{
   Optional<MongoStaff> findByStaffId(String staffId);

}
